package org.fuys.etp.repo.repository;

import org.fuys.etp.core.model.vo.TpConfigVO;

import java.util.List;

/**
 * @projectName: fuys-etp
 * @package: org.fuys.etp.repo.repository
 * @className: IEtpConfigRepository
 * @author: WangJing
 * @description: 弹性线程池配置仓储服务
 * @date: 2025/2/6 23:35
 * @version: 1.0
 */
public interface IEtpConfigRepository {

    boolean insertConfig(String poolType,TpConfigVO tpConfig);

    boolean updateConfig(String poolType,Integer configVersion,TpConfigVO config);

    boolean deleteConfig(String poolType,Integer configVersion);

    List<TpConfigVO> selectConfigByIds(String poolType, List<Integer> loadConfigIds);
}
